<%--
    Document   : autenticacao.jsp
    Author     : Sebastiao
--%>

<%@page contentType="text/html" pageEncoding="UTF-8" language="java"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
   "http://www.w3.org/TR/html4/loose.dtd">
<% response.setCharacterEncoding("UTF-8"); %>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>Página de autenticação de cliente</title>
    </head>
    <body>
        <form action="/LocacaoCarros/Controlador?cmd=autenticarCliente" method="post">
            <table style="text-align: left; width: 50%;" border="0" cellpadding="2" cellspacing="2" align="center">
                <tbody>
                    <tr>
                        <td style="vertical-align: top; text-align: right;">Usuario: </td>
                        <td style="vertical-align: top;"><input type="text" name="usuario"></td>
                    </tr>
                    <tr>
                        <td style="vertical-align: top; text-align: right;">Senha: </td>
                        <td style="vertical-align: top;"><input type="password" name="senha"></td>
                    </tr>
                    <tr>
                        <td style="vertical-align: top; text-align: right;"><input type="submit" value="Autenticar"></td>
                        <td style="vertical-align: top;"><input type="reset" value="Limpar"></td>
                    </tr>
<%
    String line = "<tr>  <td><br></td>  <td><br></td>  </tr>" +
                    "<tr>  <td style=\"text-align: center;\" colspan=\"2\" rowspan=\"1\">";
    String msg = (String) request.getAttribute("msg");
    if (msg != null && !msg.equals("")) {
        line += "<font color=\"red\">" + msg + "</font>";
        line += "</td>  </tr>";
        out.print(line);
    }
%>
                </tbody>
            </table>
        </form>
        <br>
        <h5><a href="/LocacaoCarros/setembro/livraria.jsp">Menu da Livraria</a></h5>
    </body>
</html>
